//
//  LYQFoundViewController.m
//  ZCProject
//
//  Created by Zheng on 16/11/7.
//  Copyright © 2016年 Zheng. All rights reserved.
//

#import "LYQFoundViewController.h"
#import "LYQFoundBusinessTableViewCell.h"

static NSString *cellReuseIdentifier = @"LYQFoundBusinessTableViewCell";

@interface LYQFoundViewController ()<UITableViewDelegate, UITableViewDataSource>



@end

@implementation LYQFoundViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.listTableView.delegate = self;
    self.listTableView.dataSource = self;
    [self.listTableView registerClass:[LYQFoundBusinessTableViewCell class] forCellReuseIdentifier:cellReuseIdentifier];
}

#pragma mark - tableView delegate and datasource

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 10;
}


- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 260;
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    return 10;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    return 160;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    LYQFoundBusinessTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellReuseIdentifier];
    
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}




@end
